package com.eclink.asset.asset.domain.dao;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.eclink.asset.domain.dao.CommonEntity;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;

/**
 * 资产清单表对象 asset_item
 * 
 * @author chenshixian
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description="资产维修对象")
@Data
@TableName("asset_maintenance")
public class AssetMaintenance extends CommonEntity {

    @ApiModelProperty("ID")
    private Long id;

    @ApiModelProperty("资产ID")
    private Long itemId;

    @ApiModelProperty("供应商")
    @Excel(name = "供应商")
    private String supplier;

    @ApiModelProperty("供应商联系人")
    @Excel(name = "供应商联系人")
    private String supplierContact;

    @ApiModelProperty("联系电话")
    @Excel(name = "联系电话")
    private String contactPhone;

    @ApiModelProperty("负责人ID")
    private Long userId;

    @Excel(name = "负责人")
    @ApiModelProperty("负责人")
    @TableField(exist = false)
    private String userName;

    @Excel(name = "保养到期时间")
    @ApiModelProperty("保养到期时间")
    private LocalDate deadlineTime;

    @Excel(name = "折旧期限（月）")
    @ApiModelProperty("折旧期限（月）")
    private Integer depreciation;

}
